package request

import (
	"company_website/src/model/common"
)

// 获取管理员名
type AdminName struct {
	AdminName string `json:"admin_name" from:"admin_name"`
}

// 获取项目id
type Item struct {
	ItemId int `json:"item_id" from:"item_id"`
}

// 获取分页信息及项目id
type ItemPage struct {
	Page      *common.PageReqInfo `json:"page" form:"page"`
	AdminName string              `json:"admin_name" from:"admin_name"`
}

// 获取设置个人信息
type SelfInfo struct {
	Id         int    `json:"id" form:"id" gorm:"PRIMARYKEY;AUTO_INCREMENT"`
	AdminName  string `json:"admin_name" from:"admin_name" gorm:"column:admin_name;comment:管理员用户名"`
	Sex        string `json:"sex" from:"sex" gorm:"column:sex;comment:性别"`
	Birthday   string `json:"birthday" from:"birthday" gorm:"column:birthday;comment:生日"`
	Job        string `json:"job" from:"job" gorm:"column:job;comment:职位"`
	LoginToken string `json:"login_token" from:"login_token" gorm:"column:login_token;comment:管理员登录"`
	BasicData  string `json:"basic_data" from:"basic_data" gorm:"column:basic_data;comment:基础信息"`
}
